package work.xiaohong.mina.test2.message;

/**
 * @author Kevin
 * @data 4/23/2022 9:20 PM
 * @description plc消息参数常量
 **/

public class PlcConstant {

  /**
   * 消息标识头
   */
  public static final int MessageHead = 0x02;

  /**
   * 消息内容分隔符
   */
  public static final int MessageSeparator  = 0x3b;

  /**
   * 消息标识尾
   */
  public static final int MessageEnd = 0x03;

  /**
   * 消息标识尾
   */
  public static final int MaxLength = 360;

  /**
   * 消息类型常量
   */
  public static final String LIFE = "LIFE";
  public static final String ACK = "ACK";
  public static final String CO = "CO";
  public static final String CS = "CS";
  public static final String CR = "CR";
  public static final String RC = "RC";
  public static final String MO = "MO";
  public static final String STAT = "STAT";
  public static final String CONV = "CONV";



}
